<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'quangcao-form',
	'enableAjaxValidation'=>true,
	'htmlOptions'=>array('enctype'=>'multipart/form-data')
)); ?>

	<div class="row">
		<label>Nội dung</label>
		<?php echo $form->textField($model,'NoiDung',array('size'=>60,'maxlength'=>300,'class'=>'text-input small-input')); ?>
		<?php echo $form->error($model,'NoiDung', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
		<label>Ảnh đại diện</label>
		<?php echo $form->fileField($model,'path',array('size'=>40,'class'=>'text-input small-input')); ?>
		<?php echo $form->error($model,'AnhDaiDien', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
		<label>Đường dẫn</label>
		<?php echo $form->textField($model,'Link',array('size'=>60,'maxlength'=>300,'class'=>'text-input small-input')); ?>
		<?php echo $form->error($model,'Link', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
			<?php if ($model->isNewRecord)
			{
				echo $form->checkBox($model,'TrangThai', array('checked'=>true)); 
			}else 
				echo $form->checkBox($model,'TrangThai');?> 
			<b>Hiển thị</b>
	</div><br />

	<div class="row">
		<label>Thứ tự</label>
		<?php echo $form->dropDownList($model,'STT',
					array(
						0=>'0',
						1=>'1',
						2=>'2',
						3=>'3',
						4=>'4',
						5=>'5',
						6=>'6',
						7=>'7',
						8=>'8',
						9=>'9',
						10=>'10',
						)
					); 
				?>
		<?php echo $form->error($model,'STT', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '  Tạo mới  ' : '  Cập nhật  ', array('class'=>'button')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->